<!DOCTYPE HTML>
<title>Testcase, bug 514917</title>
<style type="text/css">

body > div {
  overflow: auto; /* to detect too much overflow, which is the bug here */
  width: 200px;
  height: 200px;
}

body > div > div {
  width: 100px;
  height: 100px;
  box-shadow: blue 50px 50px;
}

body > div > div > div {
  width: 160px;
  height: 160px;
  border: medium solid;
}

</style>
<body>
<div><div><div></div></div></div>
</body>
